// 引用vant2
import {
    Button,
    Icon,
    Tag,
    Tabbar,
    TabbarItem,
    Cell,
    CellGroup,
    SubmitBar,
    Checkbox,
    Card,
    NavBar,
    Search,
    GoodsAction,
    GoodsActionIcon,
    GoodsActionButton,
    Field,
    Tab,
    Tabs,
    List,
    Popup,
    Cascader,
    Collapse, 
    CollapseItem,
    Loading
} from 'vant';

export default {
    install(Vue) {
        // 使用vant2
        Vue.use(Button);
        Vue.use(Icon);
        Vue.use(Tag);
        Vue.use(Tabbar);
        Vue.use(TabbarItem);
        Vue.use(Cell);
        Vue.use(CellGroup);
        Vue.use(SubmitBar);
        Vue.use(Checkbox);
        Vue.use(Card);
        Vue.use(NavBar);
        Vue.use(Search);
        Vue.use(GoodsAction);
        Vue.use(GoodsActionIcon);
        Vue.use(GoodsActionButton);
        Vue.use(Field);
        Vue.use(Tab);
        Vue.use(Tabs);
        Vue.use(List);
        Vue.use(Popup);
        Vue.use(Cascader);
        Vue.use(Collapse);
        Vue.use(CollapseItem);
        Vue.use(Loading);
    }
}